package com.qiangqiang.exception;

import com.qiangqiang.enums.DorStuEnum;
import com.qiangqiang.enums.DormitoryEnum;

/**
 * Created by q on 2018/2/5.
 */
public class DorStuException extends RuntimeException {
    private Integer code;

    public DorStuException(DorStuEnum dorStuEnum) {
        super(dorStuEnum.getMessage());
        this.code = dorStuEnum.getCode();
    }
}
